﻿# CMakeList.txt : CMake project for SSHProjectTest, include source and define
# project specific logic here.
#

# Add source to this project's executable.
add_executable (SSHProjectTest "SSHProjectTest.cpp" "SSHProjectTest.h" "Shell.h" "Shell.cpp" "Sftp.h" "Sftp.cpp" )

if (CMAKE_VERSION VERSION_GREATER 3.12)
  set_property(TARGET SSHProjectTest PROPERTY CXX_STANDARD 20)
endif()

# TODO: Add tests and install targets if needed.

set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} /MTd")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /MTd")

# Link libss2 libraries
include_directories(${PROJECT_SOURCE_DIR}/libssh2/include)

# Link Windows socket libraries
target_link_libraries(SSHProjectTest ws2_32.lib gdi32.lib advapi32.lib crypt32.lib user32.lib)
# Link OpenSSL libraries
#target_link_libraries(SSHProjectTest "D:/ProgramFiles/OpenSSL-Win64/lib/VC/x64/MT/libssl_static.lib")
target_link_libraries(SSHProjectTest "D:/ProgramFiles/OpenSSL-Win64/lib/VC/x64/MT/libcrypto_static.lib")
# Link Zlib libraries
#target_link_libraries(SSHProjectTest "C:/Program Files (x86)/zlib/lib/zlibstatic.lib")
# Link libss2 libraries
target_link_libraries(SSHProjectTest ${PROJECT_SOURCE_DIR}/libssh2/lib_x64_Debug_MTd/libssh2_static.lib)
